﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Microhard.JHWorkflowTrans
{
    public class JHDepModel
    {
        public string DeptID { set; get; }
        public string DeptParentID { set; get; }
        public int DeptSort { set; get; }
        public string DeptDesc { set; get; }
        public int DeptDelFlag { set; get; }
        public string DeptGuid { set; get; }
        public string DeptPy { set; get; }
        public string DeptPrincipal { set; get; }
        public string UpperLeader { set; get; }
        public string DeptName { set; get; }
        public int IsCompany { set; get; }
        public string SystemID { set; get; }

        public bool HasChildren
        {
            get
            {
                if (string.IsNullOrEmpty(DeptParentID))
                {
                    return false;
                }
                return true;
            }

        }
    }
}
